<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改页</title>

	<script src="js/jquery-3.6.0.min.js"></script>
</head>
<body>
	<form action="upd.do" method="post" enctype="multipart/form-data">
		<input type="hidden" name="id" id="ycy">
		<input type="text" name="goods_name"> <br>
		<input type="text" name="goods_price"> <br>
		<input type="text" name="goods_des"> <br>
		<input type="file" name="goods_img"> <br>
		<input type="submit" value="修改商品">
	</form>
</body>

	<script>

		let str = window.location.search;  // ?30000
		str = str.substring(1,str.length);
		$("#ycy").val(str);

	</script>


</html>